<?php

namespace application\controller\cpservice;

use application\controller\cpservice\ServiceController;
use application\service\SiteService;
use core\system\HttpRequest;

class SiteController extends ServiceController {

    private $siteService;

    public function __construct() {
        parent::__construct();
        $this->siteService = new SiteService();
    }

    /**
     * Cập nhật thông tin tài khoản
     * @param id
     * @return \application\entity\Response
     * @mapping(value=cpservice/site/changenofollow.json)
     */
    public function changeNofollow() {
        $id = HttpRequest::GET("id");
        $resp = $this->siteService->changeNofollow($id);
        $this->view->response($resp);
    }

    /**
     * @mapping(value=cpservice/site/remove.json)
     */
    public function remove() {
        $id = HttpRequest::GET("id");
        $resp = $this->siteService->remove($id);
        $this->view->response($resp);
    }

}
